export const tableOption = {
  "border": true,
  // "index": true,
  // "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  "dialogDirection": "rtl",
  "searchMenuSpan": 6,
  searchLabelWidth: 120,
  labelWidth: 140,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  "column": [
    {
      "type": "input",
      "label": "排名",
      "prop": "rownum"
    },
    {
      "type": "input",
      "label": "项目名称",
      "prop": "projectName",
      search: true,
    }, {
      "type": "input",
      "label": "项目所在地",
      "prop": "projectLocation"
    }, {
      "type": "select",
      "label": "参赛组别",
      "prop": "joinGroup",
      search: true,
      dicData: [
        {
          label: '乡村振兴创业组',
          value: '乡村振兴创业组'
        },
        {
          label: '乡村振兴创意组',
          value: '乡村振兴创意组'
        }
      ],
      change: ({value}) => {
        if (value == '乡村振兴创业组') {
          tableOption.column[4].dicData = [
            {
              label: '聚焦生物医药产业',
              value: '聚焦生物医药产业'
            },
            {
              label: '聚焦新文旅产业',
              value: '聚焦新文旅产业'
            },
            {
              label: '聚焦康养产业',
              value: '聚焦康养产业'
            },
            {
              label: '聚焦健康休闲食品产业',
              value: '聚焦健康休闲食品产业'
            }
          ]
        } else {
          tableOption.column[4].dicData = [
            {
              label: '农创',
              value: '农创'
            },
            {
              label: '文创',
              value: '文创'
            },
            {
              label: '乡创',
              value: '乡创'
            }
          ]
        }
      }
    }, {
      "type": "select",
      "label": "项目类别",
      "prop": "projectCategory",
      search: true,
      dicData: [],
    }, {
      "type": "input",
      "label": "个人/公司名称",
      "prop": "companyName",
      search: true,
    }, {
      "type": "input",
      "label": "项目说明",
      "prop": "projectInstructions",
      overHidden: true,
    },
    {
      "type": "input",
      "label": "联系电话",
      "prop": "phone",
      search: true,
    },
    {
      "type": "number",
      "label": "票数",
      "prop": "vote",
      controls: false,
    },

    {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime"
    },
  ]
}
